package com.tms.project.tms.train.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.tms.framework.aspectj.lang.annotation.Excel;
import com.tms.framework.web.domain.BaseEntity;

/**
 * 教师培训信息对象 tms_teacher_train
 * 
 * @author xyl
 * @date 2021-03-23
 */
public class TeacherTrain extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long trainId;

    /** 培训名称 */
    @Excel(name = "培训名称")
    private String trainName;

    /** 培训内容 */
    private String content;

    /** 培训地点 */
    @Excel(name = "培训地点")
    private String location;

    /** 指定范围 */
    @Excel(name = "指定范围")
    private Integer scope;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    public void setTrainId(Long trainId)
    {
        this.trainId = trainId;
    }

    public Long getTrainId()
    {
        return trainId;
    }
    public void setTrainName(String trainName)
    {
        this.trainName = trainName;
    }

    public String getTrainName()
    {
        return trainName;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setLocation(String location)
    {
        this.location = location;
    }

    public String getLocation()
    {
        return location;
    }
    public void setScope(Integer scope)
    {
        this.scope = scope;
    }

    public Integer getScope()
    {
        return scope;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("trainId", getTrainId())
            .append("trainName", getTrainName())
            .append("content", getContent())
            .append("location", getLocation())
            .append("scope", getScope())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("remark", getRemark())
            .toString();
    }
}
